package com.flk.flkelasticsearch.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * @author xxwy
 * on 2018/11/8 0008
 */
@Data
@Document(indexName = "xxwy-test",type = "doc",shards=1)
public class XxwyTest {

    @Id
    private Integer newsId;

    /**
     * 资讯标题
     */
    private String title;


    /**
     * 文章
     */
    private String code;


}
